package nila;
import java.util.*;

public class Sym {
    public static Map<String,Integer> _syms = new HashMap<String,Integer>();
    public static Map<Integer,String> _rsyms = new HashMap<Integer,String>();
    static int num = 0;
    public static boolean debug = false;
    static void d(String v) {
        if (debug) I.d("sym", v);
    }
    public static int i(String s) {
        Integer i = _syms.get(s);
        if (i == null) {
            num++;
            _syms.put(s, num);
            _rsyms.put(num, s);
            return num;
        } else return i;
    }
    public static String v(int i) {
        return _rsyms.get(i);
    }
}

